home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000176_icon-group-sender _Mon Aug 31 12:22:17 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id MAA08631
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 31 Aug 1998 12:22:16 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA21841; Mon, 31 Aug 1998 12:21:52 -0700
  7. Date: Mon, 31 Aug 1998 09:54:27 -0700
  8. From: swampler@noao.edu (Steve Wampler)
  9. Subject: Re: Integers in Posix-compliant icon
  10. To: bezeau@unb.ca
  11. Cc: icon-group@optima.CS.Arizona.EDU
  12. Message-Id: <swampler-9807311654.AA001317106@orpheus.gemini.edu>
  13. In-Reply-To: <Pine.SOL.3.96.980830144657.1473A-100000@sol.sun.csd.unb.ca>
  14. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  15. Status: RO
  16. Content-Length: 706
  17.  
  18.  
  19. Larry - Icon accepts integers expressed in 'radix' notation.  For example,
  20.    integers represented in binary are 2r1010, 2r111, etc.  Icon handles
  21.    any base up to base 36, so 23rd is the base 23 number 'd'.  3rd is
  22.    not an integer because 'd' is not a legal digit in base 3.  Note
  23.    that hexidecimal numbers are represented as 16rFF, 16r1af9, etc.
  24.  
  25.    In general the digits allowed in integers in base N are the first
  26.    N characters of the string "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  27.    (ok, so upper- or lowercase letters work...).
  28.  
  29.  
  30.  
  31. --
  32. Steve Wampler - swampler@gemini.edu [Gemini 8m Telescopes Project (under AURA)]
  33. The gods that smiled at your birth are now laughing openly. (Fortune Cookie)
  34.